<?php
/**
 * Created by PhpStorm.
 * User: fuzz
 * Date: 2019/9/12
 * Time: 13:21
 */

function get_store_type_name($type){
    return $type==2?'供应商':'运营商';
}

function get_store_type_list(){
    return array(
        array(
            'id'=>1,
            'name'=>'运营商'
        ),
        array(
            'id'=>2,
            'name'=>'供应商'
        )
    );
}

function get_operators_type_list(){
    return array(
        array(
            'id'=>1,
            'name'=>'加价运营商'
        ),
        array(
            'id'=>2,
            'name'=>'提成运营商'
        )
    );
}

function get_account_position_name($type){
    return get_account_position_list()[$type-1]['name'];
}

function get_account_position_list(){
    return array(
        array(
            'id'=>1,
            'name'=>'在 职'
        ),
        array(
            'id'=>2,
            'name'=>'离 职'
        )
    );
}
function get_operators_type($type){
    $return = $type == 1 ? '加价运营商' : '提成运营商';
    return $return; 
}